css parser: Reuse one GString
authorTimm Bäder <mail@baedert.org>
Sun, 31 Dec 2017 14:16:22 +0000 (15:16 +0100)
committerTimm Bäder <mail@baedert.org>
Tue, 2 Jan 2018 07:10:06 +0000 (08:10 +0100)
commit9ef700b16138f22dfa91b68dd2d7e25794ea2dc1
tree5aa7d7e734c9fcaa4f57b4916b64f2ec9db51c9e
parentab0edd10910ffa54ecb40c7cff8b90a0f10c6cf2
css parser: Reuse one GString

Instead of creating a new one for every ident, name and string, just
create one GString and reuse it. This means the GString we keep around
will grow to the maximum size of any ident, name or string we parse,
which is still not terribly large.
gtk/gtkcssparser.c